import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import ConfigElementType 1.0
import "qrc:/qmlComponents/ConfigManager"
import "qrc:/qmlComponents/AxisModulePos"
import "qrc:/qmlComponents/VisionViewer"
import "qrc:/qmlComponents/CustomizedUIElement/RowColumnSelectorView"

Item {
    ColumnLayout{
        RowLayout{
            VisionLocationViewer{
                calibrationName: "LensUplookCalibration"
                visionLocationName: "LensUplookRectLocation"
            }
            VisionLocationViewer{
                calibrationName: "LensUplookCalibration"
                visionLocationName: "LensUplookCircleLocation"
                calibrateBtnVisible: false
            }
        }
        Button{
            text: qsTr("MoveToPerformUplookPr")
            onClicked: {
                tem.runSingleCmd(bonderHead, "moveToPerformUplookPr")
            }
        }
        RowLayout{
            spacing: 20
            RowColumnSelector{
                rowColInfo: ltlRowColInfo
            }
            Button{
                text: qsTr("PlaceBackLens")
                onClicked: {
                    tem.runSingleCmd(bonderHead, "manuallyPlaceBackLens",
                                     [ltlRowColInfo.unitRow, ltlRowColInfo.unitColumn, ltlRowColInfo.row, ltlRowColInfo.column])
                }
            }
        }
    }
}
